package com.yangyouqi;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;

/**
 * @author 杨友奇
 * @Time 2018/7/26
 * 总结：springboot用兼并jsp的时候右键运行会页面错误，打包成jar包的时候也运行错误，只有打包成war包的时候才能够访问页面
 */
@SpringBootApplication
public class Chaper5Application extends SpringBootServletInitializer{

   /* @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder applicationBuilder){
        return applicationBuilder.sources(Chaper5Application.class);
    }*/

    public static void main(String[] args) {
        SpringApplication.run(Chaper5Application.class,args);
    }
}
